package com.wkck.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.wkck.VO.NewsInfoVO;
import com.wkck.domain.News;
import com.wkck.dto.NewsQueryBackendDto;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NewsMapper extends BaseMapper<News> {

    List<News> newsList();

    NewsInfoVO getNewsInfoById(Long id);

    Page<News> getNewsList(NewsQueryBackendDto dto);
}
